package org.opens.mybatisplus.entity.enumObj3;

import com.fasterxml.jackson.core.JsonGenerator;
import com.fasterxml.jackson.databind.JsonSerializer;
import com.fasterxml.jackson.databind.SerializerProvider;

import java.io.IOException;

public class EnumObj3JsonSerialize extends JsonSerializer<EnumObj3Sex> {

    @Override
    public void serialize(EnumObj3Sex value, JsonGenerator gen, SerializerProvider serializers) throws IOException {
        gen.writeNumber(value.getValue());
    }

}
